package com.koalac.ironman.net.pojo.request;

import android.content.Context;

import com.koalac.ironman.net.asynchttpclient.RequestParams;

/**
 * 客户端方法基类
 * 
 * @author liangzhenyu
 * 
 */
public class ClientProtocolListBase extends ClientProtocolBase {
	private int first = 0;
	private int amount = 10;

	public ClientProtocolListBase() {
	}

	public ClientProtocolListBase(String api) {
		this.APIAddress = api;
	}

	/**
	 * 获取所有参数
	 * 
	 * @return
	 */
	public RequestParams getArgus(Context context) {
		map = super.getArgus(context);
		map.add("first", String.valueOf(first));
		map.add("amount", String.valueOf(amount));
		return map;
	}

	public int getPage() {
		return first;
	}

	public void setPage(int page) {
		this.first = page;
	}

	public int getPerpage() {
		return amount;
	}

	public void setPerpage(int perpage) {
		this.amount = perpage;
	}

}
